package com.onesports.intelligent.k12.polarlight.domain.dto.wx;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.time.Instant;

/**
 * @author wangcx
 * @since 1.0.0 2022-07-14
 */
@Data
@ApiModel(value = "教练申请DTO")
public class CoachApplyDTO {

    @ApiModelProperty(value = "微信userId",hidden = true)
    private String wxUserId;

    @NotEmpty(message = "校区名称不可为空")
    @ApiModelProperty(value = "校区ids",required = true)
    private String[] campusId;

    @NotBlank(message = "申请者姓名不可为空")
    @ApiModelProperty(value = "申请者姓名",required = true)
    @Length(max = 20, message = "名字请不要超过20位")
    private String applyName;

    @NotBlank(message = "身份证不可为空")
    @ApiModelProperty(value = "身份证号",required = true)
    @Length(min = 18, max = 18, message = "请输入正确的身份证号码")
    private String idCard;

    @ApiModelProperty(value = "手机号",required = true)
    private String applyPhone;

    @ApiModelProperty(value = "申请时间",hidden = true)
    private Instant applyTime;


}
